home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mc51bugs / q33900 < prev    next >
Text File  |  1988-08-11  |  1KB  |  53 lines

  1. Q33900 Title #pragma in Include File Disables Further #pragmas
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    If you use the #pragma title("text") feature in an include file, it
  8. does not work correctly and any further #pragmas (e.g. title, page,
  9. etc.) in the main file are ignored. The "Microsoft C Optimizing
  10. Compiler for MS OS/2 and MS-DOS Operating Systems Version 5.1 Update"
  11. manual does not disallow this use.
  12.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  13. C compiler. We are researching this problem and will post new
  14. information as it becomes available.
  15.    You can work around the problem by using the #pragma feature before
  16. the #include line.
  17.  
  18. More Information:
  19.    Compile the following file with /Fs for a source listing:
  20.  
  21. /* PRAGMA.C */
  22. #pragma title("main program #1")
  23. #pragma page()
  24.  
  25. #include "pragma.inc"
  26. #pragma page()
  27.  
  28. #pragma title("main program #2")
  29. #pragma page()
  30.  
  31.  
  32. main ()
  33. {
  34.     while (1);
  35. }
  36. /* PRAGMA.INC : */
  37.  
  38. /* The next two title will not appear in the source listing.
  39.    Comment out these two lines to see the difference in PRAGMA.LST    */
  40.  
  41. #pragma title("include file #1")
  42. #pragma page()
  43.  
  44. int foo (void)
  45. {
  46.         i=j;
  47.         return (i);
  48. }
  49.  
  50.  
  51. Keywords:  buglist5.10
  52. Updated  88/08/12 07:22
  53.